package com.crm.crm.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;
import java.util.List;

@Data
public class Dept {
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime createTime;
    private String createBy;
    private String updateBy;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime  updateTime;
    //部门ID
    private Long deptId;
    //父部门ID
    private Long parentId;
    //祖宗
    private String ancestors;
    //部门名称
    private String deptName;
    //TODO:类型没确定
    private String orderNum;
    //leader
    private String leader;
    //电话
    private String phone;
    //邮箱
    private String email;
    //状态
    private String status;
    //delFlag
    private String delFlag;
    //parentName
    private String parentName;
    //TODO:类型没确定
    private List<Dept> users;
    //TODO:类型没确定
    private List<Dept> children;



}
